<template>
  <div class="vipcenter-root">
    <div class="header">
      <Header :title="title"></Header>
    </div>
    <div class="vipbody">
      <div class="v1">
        <div class="v1-card">
          <div>
            <h2>VIP卡</h2>
            <p>开通预计省</p>
            <div><span>￥</span><span class="price">2000.00</span></div>
          </div>
          <div>
            <div>
              <img src="../../../../public/ykf-img/card.png" alt="" />
            </div>
            <div>
              <div @click="kaikahander">立即开通</div>
            </div>
          </div>
        </div>
      </div>

      <div class="v2">
          <Lingquan></Lingquan>
      </div>

      <div class="v3">
        <p>全品优惠券</p>
        <ul>
          <li>
            <div>￥<span>10</span></div>
            <div>
              <p @click="kaikahander">开卡领券</p>
              <p>满300使用</p>
            </div>
          </li>
          <li>
            <div>￥<span>10</span></div>
            <div>
              <p @click="kaikahander">开卡领券</p>
              <p>满300使用</p>
            </div>
          </li>
          <li>
            <div>￥<span>10</span></div>
            <div>
              <p @click="kaikahander">开卡领券</p>
              <p>满300使用</p>
            </div>
          </li>
          <li>
            <div>￥<span>10</span></div>
            <div>
              <p @click="kaikahander">开卡领券</p>
              <p>满300使用</p>
            </div>
          </li>
        </ul>
      </div>

      <div class="v4">
        <p>店铺优惠劵</p>
        <ul>
          <li>
            <div>
              <p>超哥官方旗舰店</p>
              <ul>
                <li>
                  <div>
                    <img src="../../../../public/ykf-img/good.jpg" alt="" />
                  </div>
                  <p>￥19.0</p>
                </li>
                <li>
                  <div>
                    <img src="../../../../public/ykf-img/good.jpg" alt="" />
                  </div>
                  <p>￥19.0</p>
                </li>
                <li>
                  <div>
                    <img src="../../../../public/ykf-img/good.jpg" alt="" />
                  </div>
                  <p>￥19.0</p>
                </li>
              </ul>
            </div>
            <div>
              <div>￥<span>20.0</span></div>
              <p>满400可用</p>
              <div @click="kaikahander">开卡领券</div>
            </div>
          </li>
          <li>
            <div>
              <p>超哥官方旗舰店</p>
              <ul>
                <li>
                  <div>
                    <img src="../../../../public/ykf-img/good.jpg" alt="" />
                  </div>
                  <p>￥19.0</p>
                </li>
                <li>
                  <div>
                    <img src="../../../../public/ykf-img/good.jpg" alt="" />
                  </div>
                  <p>￥19.0</p>
                </li>
                <li>
                  <div>
                    <img src="../../../../public/ykf-img/good.jpg" alt="" />
                  </div>
                  <p>￥19.0</p>
                </li>
              </ul>
            </div>
            <div>
              <div>￥<span>20.0</span></div>
              <p>满400可用</p>
              <div @click="kaikahander">开卡领券</div>
            </div>
          </li>
        </ul>
      </div>

      <div class="v5">
        <p>猜你喜欢</p>
        <div class="goodslist">
              <jinpinlist :obj='obj'></jinpinlist>
        </div>
      </div>
    </div>
  </div>
</template>

<script >
import Vue from "vue";
import Header from "@/components/header.vue";
import Lingquan from "@/components/lingquan.vue";
import Homegoods from "@/views/index/Home/Homegoods";
import jinpinlist from '../Home/jinpinlist'
// import Header from '../../../components/header.vue'
export default {
  components: {
    Header,
    jinpinlist,Lingquan
  },
  mounted() {},
  methods: {
    kaikahander() {
      this.$router.push("kaitongvip");
    },
  },
  data() {
    return {
      title: "会员中心",
      obj:{
        src:'/ykf-img/good2.jpg'
      }
    };
  },
};
</script>
<style lang="stylus">
html {
  // font-size 100px
}
</style>
<style lang="stylus" scoped>
.header {
  position: sticky;
  margin-bottom: 0.1rem;
  top: 0px;
}

.vipcenter-root {
  height: 100%;
  overflow-y: scroll;
  position: relative;
}

.vipbody {
  padding: 0 0.12rem;
  display: flex;
  flex-direction: column;

  .v1-card {
    border-radius: 0.12rem;
    height: 1.42rem;
    background: linear-gradient(135deg, rgba(102, 110, 232, 1) 0%, rgba(102, 110, 232, 1) 0%, rgba(153, 153, 255, 1) 98%, rgba(153, 153, 255, 1) 100%);
    display: flex;
    justify-content: space-between;
    padding: 0.12rem;

    >div:first-child {
      width: 50%;
      color: white;
      line-height: 1;
      display: flex;
      // flex 1
      flex-direction: column;
      justify-content: space-between;

      h2 {
        font-size: 0.24rem;
        font-weight: 500;
        padding-bottom: 0.3rem;
      }

      p {
        // padding-bottom .08rem
      }

      >div .price {
        font-size: 0.26rem;
        // >div .price
      }
    }

    >div+div {
      // overflow hidden
      >div:first-child {
        transform: rotate(-45deg);
        margin-top: -0.19rem;
        margin-right: -0.1rem;
      }

      >div+div {
        margin-top: 0.12rem;
        text-align: center;

        // border-radius .03rem
        >div {
          margin-top: 0.03rem;
          padding: 0.03rem 0.06rem;
          display: inline-block;
          border-radius: 0.18rem;
          background-color: white;
          color: #666EE8;
          font-weight: 500;
        }
      }
    }
  }

  // .v2 {
  //   >p {
  //     padding: 0.16rem 0;
  //     font-size: 0.16rem;
  //   }

  //   ul {
  //     display: flex;
  //     width: 100%;
  //     justify-content: space-between;
  //     flex-wrap: wrap;
  //     font-size: 0.14rem;

  //     li {
  //       width: 24%;
  //       text-align: center;
  //       padding-bottom: 0.1rem;

  //       >div:first-child {
  //         width: 60%;
  //         // height 52%
  //         border-radius: 0.25rem;
  //         background-color: rgba(102, 110, 232, 0.098039215);
  //         text-align: center;
  //         line-height: 0.5rem;
  //         display: inline-block;
  //       }

  //       >p {
  //         line-height: 1;
  //         padding: 0.1rem 0 0.06rem;
  //       }

  //       >div:last-child {
  //         text-align: left;
  //         white-space: nowrap;
  //         overflow: hidden;
  //         font-size: 0.12rem;
  //         color: #ccc;
  //       }
  //     }
  //   }
  // }
}

.v3 {
  >p {
    height: 0.5rem;
    text-align: center;
    color: rgba(102, 110, 232, 0.89803);
    font-size: 0.16rem;
    line-height: 0.5rem;
    background-color: rgba(0, 0, 1, 0.03);
    margin: 0 -0.12rem;
  }

  ul {
    display: flex;
    margin: 0 -0.12rem;
    padding: 0 0.12rem;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: rgba(0, 0, 1, 0.03);
    overflow: hidden;
    height: 1.58rem;

    li {
      width: 48%;
      height: 0.6rem;
      display: flex;
      // background-color #fff
      line-height: 0.6rem;

      >div:first-child {
        background-color: #fff;
        // background-color black
        border-radius: 0 0.15rem 0.15rem 0;
        width: 40%;
        // height 100%
        // line-height 100%
        color: #FF6262;
        text-align: center;
        border-right: 1px dashed rgba(0, 0, 0, 0.1);

        span {
          font-size: 0.34rem;
        }
      }

      >div:last-child {
        background-color: #fff;
        border-radius: 0.15rem 0 0 0.15rem;
        width: 60%;
        padding-left: 0.1rem;
        line-height: 1;
        padding-top: 0.15rem;

        >p:first-child {
          // line-height .18rem
          margin-bottom: 0.05rem;
          color: #666EE8;
        }

        >p+p {
          color: #ccc;
          font-size: 0.13rem;
        }
      }
    }
  }
}

.v4 {
  background-color: rgba(0, 0, 1, 0.03);
  margin: 0 -0.12rem;
  padding: 0.18rem;
  padding-top: 0;
  padding-bottom: 0;

  >p {
    // height .5rem
    width: 100%;
    text-align: center;
    color: rgba(102, 110, 232, 0.89803);
    font-size: 0.16rem;
    line-height: 0.5rem;
    // background-color rgba(0,0,1,0.03)
    margin: 0 -0.18rem;
  }

  >ul>li {
    height: 1.35rem;
    padding-bottom: 0.1rem;
    display: flex;
    margin-bottom: 0.12rem;
    color: #333;

    >div:first-child {
      background-color: #fff;
      border-radius: 0 0.3rem 0.3rem 0;
      padding-left: 0.1rem;
      width: 67%;

      >p {
        height: 0.36rem;
        font-size: 0.16rem;
        line-height: 0.36rem;
      }

      >ul {
        display: flex;
        justify-content: space-between;

        >li {
          // padding-right .1rem
          img {
            width: 0.6rem;
            height: 0.6rem;
          }

          >p {
            color: #FF6262;
            text-align: center;
            height: 0.3rem;
            line-height: 0.3rem;
          }
        }
      }
    }

    div+div {
      width: 33%;
      padding: 0.2rem 0;
      text-align: center;
      border-radius: 0.3rem 0 0 0.3rem;
      background-color: #fff;

      >div:first-child {
        height: 0.28rem;
        line-height: 0.28rem;
        color: #FF6262;
        font-size: 0.12rem;
        margin-bottom: 0.08rem;
        border-left: 0.01rem dashed #ccc;

        span {
          font-size: 0.22rem;
        }
      }

      >p {
        font-size: 0.14rem;
        line-height: 1;
        margin-bottom: 0.15rem;
        border-left: 0.01rem dashed #ccc;
      }

      >div~div {
        width: 0.8rem;
        height: 0.28rem;
        border-radius: 0.14rem;
        // border-left .01rem dashed #ccc
        background-color: rgba(102, 110, 232, 1);
        color: white;
        line-height: 0.28rem;
        text-align: center;
        display: inline-block;
      }
    }
  }
}

.v5 {
  background-color: rgba(0, 0, 1, 0.03);
  margin: 0 -0.12rem;
  padding: 0 0.16rem;

  >p {
    height: 0.3rem;
    font-size: 0.18rem;
    color: rgba(102, 110, 232, 0.898);
    text-align: center;
    margin-bottom: 0.12rem;
  }
}

.goodslist {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
</style>